package com.onest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

//@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public void sayHello() {
        userDao.sayHello();
        System.out.println("userService say hello");
    }


    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
